new Vue({
  el: '#app',
  data() {
    return {
      form: {//这个根本没用上
        // Primary_Key_Name: "Group_Seek_Transaction_SerialNumber",
        // Primary_Key: this.Group_Seek_Transaction_SerialNumber,
        // isNullEnterprise: true
      },
      form1: {
        Group_SerialNumber: '',
        page: 1,			//页数
        limit: 10,			//每页数据条数
      },
      title: "加载中...请稍后",
      xiangqing: [],
      loading: false,
      img: [],
      Data: [],
      formData: {},
      radioValue: 1,
      imgdisabled: true,
      Group_Seek_Paystages_SerialNumber: "",
      Group_Seek_Transaction_SerialNumber: "",
      Enterprise_Info_SerialNumber: "",
      Group_Seek_Purchase_SerialNumber: '',
      Amount: "",
      Picture_URL: "",
      Collection_SerialNumber: "",
      dislogChoosePay: false,
      dislogPayCode: false,
      dislogPayTicket: false,
      codeurl: "",
      PaystagesData: {},
      current: -1,
      tableData: [],
      tableData1: [],
      pagename: "付款阶段",
      pageed: "付款额度",
      pageprice: "付款金额",
      lock: 1,
      Time: null,
      imageUrl2: "",
    }
  },
  mounted() {
    // this.LogGet()
    const detailString = localStorage.getItem('detail');
    this.Group_Seek_Transaction_SerialNumber=JSON.parse( detailString).Group_Seek_Transaction_SerialNumber
    if (detailString) {
      const detailObject = JSON.parse(detailString);
      this.tableData.push(detailObject);
    }
    console.log('本地获取', this.tableData)
    this.form1.Group_SerialNumber = sessionStorage.getItem('Group_Seek_Transaction_SerialNumber')
    let Group_Purchasing_SerialNumber = sessionStorage.getItem('Group_Seek_Purchase_SerialNumber')
    this.getData(Group_Purchasing_SerialNumber)
    this.getLog(this.form1)
    this.getLogistics();
  },
  methods: {

    getData(Group_Seek_Purchase_SerialNumber) {
      let _this = this;
      $.ajax({
        url: DomainName + '/getGroupSeekProcureID',
        type: 'POST',
        data: {
          Group_Seek_Purchase_SerialNumber,
          token: $.cookie("token")
        },
        success: function (res) {
          console.log('fajfojefoiwwwwwww', res)
          _this.tableData = res
          console.log('tabledata', _this.tableData)

        }
      })
    },
    //   操作日志
    getLog(data) {
      console.log(data);
      let _this = this;
      $.ajax({
        url: DomainName + '/getGroupOperationLog?token=' + $.cookie('token'),
        type: 'POST',
        data,
        success: function (res) {
          // console.log('操作日志',res)
          row = res.tableData
          _this.xiangqing = row
          console.log('操作日志', _this.xiangqing)
        }
      })
    },
    // 物流信息
    getLogistics() {
      console.log('jinliale')
      let _this = this;
      $.ajax({
        url: DomainName + '/getInquiryIDOriginal?token=' + $.cookie('token'),
        type: 'POST',
        data: {
          Data: "group_seek_transaction_logistics",
          Primary_Key_Name: "Group_Seek_Transaction_SerialNumber",
          Primary_Key: _this.Group_Seek_Transaction_SerialNumber,
          isNullEnterprise: true,
        },
        success: function (res) {
          console.log('物流信息', res)
          _this.tableData1 = res;
        }
      })
    }

  },
})

